#!/usr/bin/python
bob = {'name': 'Bob Smith', 'age': 42, 'pay': 30000, 'job': 'dev'}
sue = {'name': 'Sue Jones', 'age': 45, 'pay': 40000, 'job': 'hdw'}

print bob['name'], sue['pay']

print bob['name'].split()[-1]

bob2 = {'name': {'first': 'Bob', 'last': 'Smith'},
	'age' : 42,
	'job' : ['software', 'writing'],
	'pay' : (40000, 500000)}
print bob2['name']
print bob2['name']['last']

for job in bob2['job']: print(job)

bob2['job'].append('janitor')
print bob2
